package org.iocworkflow;

/**
 * Abstract implemention of activity designed for
 * re-use by business purpose specific Activities
 * 
 * Class:BaseActivity
 * Creation Date: Mar 4, 2005
 * CVS ID $Id: BaseActivity.java,v 1.1 2006/07/09 15:59:59 king Exp $
 * 
 *  @author sdodge
 *  @since $Date: 2006/07/09 15:59:59 $
 */
public abstract class BaseActivity implements Activity {
    
    private ErrorHandler errorHandler;
    private String beanName;

    public ErrorHandler getErrorHandler() {
        return errorHandler;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName; 
    }

    /**
     * Set the fine grained error handler
     * @param errorHandler
     */
    public void setErrorHandler(ErrorHandler errorHandler) {
        this.errorHandler = errorHandler;
    }
    
    public String getBeanName() {
        return beanName;
    }
}
